package com.sd.repay.service;

import com.sd.repay.common.Page;
import com.sd.repay.pojo.ExtractionOrder;

import java.util.List;

/**
 * Created by sd on 2018/08/21
 */
public interface ExtractOrderService {

    int saveExtractOrder(ExtractionOrder order) throws Exception;

    ExtractionOrder getExtractByOrderNo(String orderNo) throws Exception;

    int updateExtractStatus(String orderNo, String newStatus, String oldStatus, String isReverse, String reverseStatus, String resultCode, String resultMsg) throws Exception;

    int updateExtractReverseStatus(String orderNo, String newReverseStatus, String oldReverseStatus, String resultCode, String resultMsg) throws Exception;

    List<ExtractionOrder> getReverseExtractOrder() throws Exception;

    Page<ExtractionOrder> getExtractionOrderPageByMer(String merType, String merNo, String startTime, String endTime, int pageNo, int pageSize) throws Exception;
}
